package org.vergil.core.designpattern.state.share;

/**
 * Created by vergil on 17-3-25.
 */
public class OffState extends AbstractState {

    @Override
    public void on(Switch s) {
        System.out.println("打开！");
        s.setState(Switch.getState("on"));
    }

    @Override
    public void off(Switch s) {
        System.out.println("已经关闭！");
    }
}
